//
//  GC_DetailsSegmentView.h
//  OnlineRetailers
//
//  Created by mini3 on 2017/6/5.
//  Copyright © 2017年 OnlineRetailers. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface GC_DetailsSegmentView : UIView

///当前选项
@property(nonatomic, assign) NSInteger currentItem;

///初始化
-(id)initWithHeight:(CGFloat)height;

///设置item
-(void)setItems:(NSArray*)nameArray;
///设置item
-(void)setUnLineItems:(NSArray*)nameArray;
///设置item名字
- (void)setItem:(NSInteger)item title:(NSString *)title;
///设置选中项
-(void)setSelectItem:(NSInteger)item;

///设置默认，选中字体
- (void)setDefaultFont:(UIFont *)defaultFont selectFont:(UIFont *)selectFont;

///设置上分界线显隐
-(void)setTopLineImageViewHidden:(BOOL)hidden;
///设置下分界线显隐
-(void)setBottomLineImageViewHidden:(BOOL)hidden;

///选择Block
@property (nonatomic, copy)void(^onSelectedBlock)(NSInteger item);

@property (nonatomic, assign) NSInteger lineMargin;
@end
